import base from '@/api/baseurl';
import request from '@/utils/request'

export function projManageList(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ProjectManage/Find',
    method: 'get',
    params: query
  })
}

export function insertProjManage(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ProjectManage/insert',
    method: 'post',
    data
  })
}

export function updateProjManage(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ProjectManage/update',
    method: 'post',
    data
  })
}

export function deleteProjManage(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ProjectManage/del',
    method: 'get',
    params: query
  })
}

export function delManyProjManage(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ProjectManage/delMany',
    method: 'post',
    data
  })
}

export function loadProdTree(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ProjectManage/findProduct',
    method: 'get',
    params: query
  })
}

export function loadBranchTree(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/organization/findorganizationall',
    method: 'get',
    params: query
  })
}
